package net.jxvtc.lesson01.controller;

import net.jxvtc.lesson01.config.MySQL;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ProfileController {

    @Autowired
    private MySQL mysql;

    @RequestMapping("/mysql")
    public MySQL getInfo()
    {
        return mysql;
    }
}
